import { createApp } from "vue";
import App from "./App.vue";
// reset style sheet
import "@/styles/reset.scss";
// CSS common style sheet
import "@/styles/common.scss";
import "@/assets/iconfont/iconfont.css";
// svg icons
import "virtual:svg-icons-register";
// 自定义指令
import directives from "@/directives/index";
// pinia store
import pinia from "@/stores";
// 路由
import router from "@/routers";

// errorHandler
import errorHandler from "@/utils/errorHandler";

import VxeTable from "vxe-table";
import "vxe-table/lib/style.css";
import VxeUI from "vxe-pc-ui";
import "vxe-pc-ui/lib/style.css";

const app = createApp(App);

app.config.errorHandler = errorHandler;

app.use(directives).use(router).use(pinia).use(VxeUI).use(VxeTable).mount("#app");
